package admin

import (
	"context"
	"grpc.getaway.adminspro.padmins.com/internal/rpc/module/admin/resourceLogic"
	pbAdmin "grpc.getaway.adminspro.padmins.com/pkg/proto/admin"
)

func (rpc *admin) AdminResourceList(ctx context.Context, pb *pbAdmin.AdminResourceListReq) (*pbAdmin.AdminResourceListResp, error) {
	list := resourceLogic.List()
	return &pbAdmin.AdminResourceListResp{
		Status: list["status"],
		Type:   list["type"],
	}, nil
}
